<?php defined('SYSPATH') or die('No direct script access.');

//路由规则
Route::set('wxpay', 'wxpay/pc(/<action>(/<params>))', array('params' => '.*'))
     ->defaults(array(
         'action'     => 'index',
         'controller' => 'wxpay',
         'directory'  => 'pc',
     ));

//修复当web_h5关闭时,uniapp不能在微信浏览器中使用微信支付
Route::set('wxpay_web_h5', 'wxpay/mobile(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'action'     => 'uniapp_index',
        'controller' => 'wxpay',
        'directory'  => 'mobile',
    ));